package org.kazuhiko.pokemon3d.utility.tools;



import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

import org.newdawn.slick.opengl.Texture;
import org.newdawn.slick.opengl.TextureLoader;

public class ImagingTools
{
	public static Texture loadTexture( String location )
	{
		try
		{
			return TextureLoader.getTexture( "PNG", new FileInputStream( new File( location ) ) );
		}
		catch( FileNotFoundException e )
		{
			
		}
		catch( IOException e )
		{
			
		}
		
		return null;
	}
}
